//
//  FAQDetail.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/11.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "FAQDetail.h"

@interface FAQDetail ()<UIWebViewDelegate>

@end

@implementation FAQDetail

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = BACKGROUND_COLOR;
    [self leftButton:nil];
    UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [self.view addSubview:web];
    web.delegate = self;
    [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_urlString]]];
    JSVIEWSHOW;
}

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    JSVIEWHIDE;
    JSSHOW(LOAD_FAIL_TIP);
}

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    JSVIEWHIDE;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
